/***********************************************************************
 * Module:  GameTime.h
 * Author:  gahon_a
 * Modified: lundi 2 janvier 2012 16:38:09
 * Purpose: Declaration of the class GameTime
 * Comment: Classe de gestion du temps
 ***********************************************************************/

#if !defined(__rtype_GameTime_h)
#define __rtype_GameTime_h

#include <Header.hh>
#include <SFML/System.hpp>

class GameTime
{
public:
    GameTime();
    ~GameTime();

    Time    ElapsedGameTime(void);
    void    ElapsedGameTime(Time newElapsedGameTime);

    bool    IsRunningSlowly(void);
    void    IsRunningSlowly(bool newIsRunningSlowly);

    Time    TotalGameTime(void);
    void    TotalGameTime(Time newTotalGameTime);

    void    UpdateElapsedTime(void);
    void    UpdateTotalGameTime(void);

protected:
private:
   Time         _ElapsedGameTime;
   bool         _IsRunningSlowly;
   Time         _TotalGameTime;
   sf::Clock    *_TotalClock;
   sf::Clock    *_Clock;


};

#endif
